﻿using System;


namespace TrackMoney
{
    /// <summary>
    /// return
    /// </summary>
    public class Result
    {
        public bool ret;
        public string str;
    }
    /// <summary>
    /// user login
    /// </summary>
    public class UserAccount
    {
        public int key;
        public string name;
        public string email;
        public string password;
        public int age;

        public int gender;
        public string sGender
        {
            get {
                string s ="Male";
                switch (gender)
                {
                    case 0:
                        s = "Male";
                        break;
                    case 1:
                        s = "Female";
                        break;
                    case 2:
                        s = "Whatever";
                        break;
                }
                return s;
            }
        }
    }
    public class category
    {
        public int key;
        public int type;
        public string name;
        public int index; //order
        public int owner;
    }

    public class Expense
    {
        public int key;
        public int category;
        public decimal amount;
        public DateTime date;
        public string notes;
        public int owner;
    }

    public class Income
    {
        public int key;
        public int category;  //id
        public string sCategory; //string
        public decimal amount;
        public DateTime date;
        public string notes;
        public int group; //income or expense?
        public int owner;
    }
}